package com.villaday.idf.model3;

public class Orders_invoice {
    /**
     * action : integer,1:申请,2:发送到邮箱
     * orderNo : string,订单号,action=1时必须
     * type : integer, 发票种类，1: 增值税普通发票,action=1时必须
     * title : string,发票抬头，当抬头类型为个人时，写死为 个人,action=1时必须
     * content : string,发票内容,action=1时必须
     * phone : string,收票人电话号码,action=1时必须
     * email : string,收票人邮箱,必须
     * username : string,收票人姓名,action=1时必须
     * taxpayerNumber : string,纳税人识别号
     */

    private Integer action;
    private String orderNo;
    private Integer type;
    private String title;
    private String content;
    private String phone;
    private String email;
    private String username;
    private String taxpayerNumber;

    public Orders_invoice(String orderNo, String email) {
        this.action = 2;
        this.orderNo = orderNo;
        this.email = email;
    }

    public Orders_invoice(String orderNo, Integer type, String title, String content, String phone, String email, String username, String taxpayerNumber) {
        this.action = 1;
        this.orderNo = orderNo;
        this.type = type;
        this.title = title;
        this.content = content;
        this.phone = phone;
        this.email = email;
        this.username = username;
        this.taxpayerNumber = taxpayerNumber;
    }

    public Integer getAction() {
        return action;
    }

    public void setAction(Integer action) {
        this.action = action;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getOrderNo() {
        return orderNo;
    }

    public void setOrderNo(String orderNo) {
        this.orderNo = orderNo;
    }



    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getContent() {
        return content;
    }

    public void setContent(String content) {
        this.content = content;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getTaxpayerNumber() {
        return taxpayerNumber;
    }

    public void setTaxpayerNumber(String taxpayerNumber) {
        this.taxpayerNumber = taxpayerNumber;
    }





}
